from scrapy.cmdline import execute
from scrapy.crawler import CrawlerProcess  

import os
import sys


# 不用debug的时候main.py和run.py屏蔽，不然运行scrapy list自动跑了 douban这个爬虫
# 2024/01/22 根本就不需要run.py，只要一个main.py就可以debug
if __name__ == '__main__':  
  sys.path.append(os.path.dirname(os.path.abspath(__file__)))
  # execute(['scrapy','crawl','douban'])
  execute(['scrapy','crawl','myauto1'])
  #pass

